New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

on-performance

Package Overview
Dependencies
Maintainers
26
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-performance

Listen for performance timeline events

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by34.21%
Maintainers
26
Weekly downloads
 
Created
Source

on-performance stability

npm version build status downloads js-standard-style

Listen for performance timeline events and clears them after usage. Returns a singleton. Can be used in both node and browser environments.

Usage

var onPerformance = require('on-performance')

onPerformance(function (entry) {
  console.log('entry: ', entry.entryType, entry)
})

API

stop = onPerformance(callback(entry))

Listen for performance events. Returns a singleton (e.g. multiple calls to this method are registered on the same listener). If multiple instances are created during the first tick, all initial events will be played back to all instances.

stop()

Stop the observer.

License

MIT

Keywords

FAQs

Package last updated on 16 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc